const mongoose = require('mongoose')
const Schema = mongoose.Schema;

const MsgSchema = new Schema({
  name: {
    type: String
  },
  email: {
    type: String
  },
  text: {
    type: String
  },
  createTime: {
    type: Date,
    default: Date.now
  },
  updateTime: {
    type: Date,
    default: Date.now
  },
})

module.exports = Message = mongoose.model("message", MsgSchema)